from rest_framework import serializers
from . import models


class DepartmentSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.AdminDepartment
        fields = ['id', 'name', 'director', 'director_tel', 'remarks', 'ord', 'pid']

        extra_kwargs = {
            'id': {'read_only': True}
        }